# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-flask-socketio
_pkgname=Flask-SocketIO
pkgver=4.2.1
pkgrel=3
pkgdesc='Socket.IO integration for Flask applications.'
url='https://pypi.org/project/Flask-SocketIO/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-flask' 'python2-python-socketio' 'python2-eventlet')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('73c57c2cd0194fd8c83abe660464f5f3aa636f5446e46333e69fc16dc09158a3c1f61f611c884c5604bba29535f429b8ccdd0fa4e56d2cd19f52f39b167b1d64')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

